Software Development
Handling Errors with Exceptions
Final Exam: Java Apprentice
Handling Errors: Advanced Topics in Exceptions
Handling Errors: An Introduction to Exceptions
Handling Errors: Handling Exceptions in Java

Final Exam: Java Apprentice

Course Number:
it_fejnj_02_enus
Lesson Objectives

Final Exam: Java Apprentice

  • access and update protected and private fields
  • access and update values of fields
  • access public, private, and protected methods
  • access the constructors in a class using reflection
  • annotate test case methods for unit testing
  • compare and contrast lambda statements and expressions
  • compare and contrast the usage of parameterized and non-parameterized lists
  • compare and contrast upper-bounded wildcards and bounded type parameters
  • constrain types using bounded type parameters
  • create a custom pom.xml file and build an executable JAR with Maven
  • create a Maven project which can then be packaged into a JAR file
  • create and add data to arrays of different types
  • create and execute a basic Java archive using a manifest file
  • create and set up a basic IntelliJ project to write java code
  • create Predicate, Consumer, Function, and Supplier interfaces
  • define and use anonymous classes
  • define and use inner classes
  • define and use lambda expressions
  • define and use local classes
  • define new classes and instantiate objects of these classes
  • examine the fixed-length enforcement of arrays
  • execute and view the contents of a Java archive built with Maven
  • execute test cases using a custom test harness
  • explore the basic characteristics of the 'set' data structure
  • explore the disadvantages of using reflection with generics
  • extract and recognize the contents of a Java archive (JAR)
  • given code, identify the exception
  • identify anonymous, local, member classes, and interfaces using reflection
  • identify enums, arrays, and primitives using reflection
  • identify types of exceptions encountered by compilers
  • identify what generic information about type parameters is available using reflection
  • implement a class with generics for type safety and compile-time checks
  • implement a dynamic proxy to create a dynamic object implementing an interface
  • install and configure Maven to create Java archives
  • instantiate and use static nested classes
  • iterate over the values in arrays using for loops
  • list the advantages of writing generic code over non-generic code
  • outline the automatic generation of manifests and the fields contained in them
  • outline the hierarchy of Exception classes in Java and recall specific exception types
  • recall how different types of sets are ordered
  • recall how functional interface instances are objects
  • recall how hash sets identify duplicates
  • recall how Java infers data types using wildcard capture
  • recall how nested static classes work
  • recall that anonymous instances are objects
  • recall the disadvantages of unbounded type parameters
  • recall the limitations of static nested classes
  • recall the limitations of using raw objects rather than generic types
  • recall the limitations on code reuse in non-generic classes
  • recall the special operations that can be performed on sorted maps
  • recall when and how you would use unbounded wildcards
  • recognize different type of map implementations
  • recognize how the throwing of exceptions influences the flow of a Java program
  • use an integrated development environment (IDE) to create the main class for a Java project
  • use class handles accessed via reflection to explore properties of classes
  • use multiple catch blocks to handle different types of exceptions in your code
  • use public, private, and protected methods
  • use the throw keyword in Java to explicitly throw an exception when the state of the program does not match your own set of valid conditions
  • view and edit data stored in arrays
  • work with list operations

Overview/Description

Final Exam: Java Apprentice will test your knowledge and application of the topics presented throughout the Java Apprentice track of the Skillsoft Aspire Java Novice to Javanista Journey.



Target

Prerequisites: none

Handling Errors: Advanced Topics in Exceptions

Course Number:
it_jpheexdj_03_enus
Lesson Objectives

Handling Errors: Advanced Topics in Exceptions

  • discover the key concepts covered in this course
  • use the throw keyword in Java to explicitly throw an exception when the state of the program does not match your own set of valid conditions
  • invoke multiple exceptions in your program based on different error conditions
  • throw and handle exceptions at various levels when nested function calls are involved
  • define your exception class by extending Java's built-in Exception
  • summarize the key concepts covered in this course

Overview/Description

While handling exceptions is enough for most programmers, if you are building an app that other developers consume, you should know how to throw exceptions proactively and the various options available in Java in this regard. This is precisely the focus of this course.

Learn about throwing an exception based on your conditions in a Java program and how nested function calls influence exception throwing and handling. You'll get a chance to explicitly throw an exception using the throw keyword, add complexity to your code by throwing different exceptions based on different conditions, and build a customized Exception class to define an exception that is not covered by Java's library.

Having finished this course, you'll have the knowledge to throw exceptions and run your program without breaking its flow.



Target

Prerequisites: none

Handling Errors: An Introduction to Exceptions

Course Number:
it_jpheexdj_01_enus
Lesson Objectives

Handling Errors: An Introduction to Exceptions

  • discover the key concepts covered in this course
  • identify the different categories of exceptions in Java and how to deal with them
  • outline the hierarchy of Exception classes in Java and recall specific exception types
  • recognize compile errors in Java and distinguish these from exceptions
  • define unchecked exceptions in the context of Java and how these can be acknowledged or handled by a developer
  • list examples of checked exceptions in Java and contrast these with unchecked exceptions
  • summarize the key concepts covered in this course

Overview/Description

Developers need to be aware of the concept of exceptions in the context of Java and how they are implemented in the language so that they can handle it efficiently. Use this course to familiarize yourself with Java exceptions from both a theoretical and practical standpoint.

Delve into the two major categories of Java exceptions - checked exceptions that can be identified at the compile stage and unchecked exceptions which occur while the program is running. Next, you'll be able to try your hand at some hands-on programming and discover how to work with compile-time errors and distinguish them from exceptions.

After finishing this course, you'll be in a position to recognize the purpose and categories of Java exceptions and how to tackle them.



Target

Prerequisites: none

Handling Errors: Handling Exceptions in Java

Course Number:
it_jpheexdj_02_enus
Lesson Objectives

Handling Errors: Handling Exceptions in Java

  • discover the key concepts covered in this course
  • recognize how the throwing of exceptions influences the flow of a Java program
  • implement a basic try-catch block to handle an exception in Java
  • use multiple catch blocks to handle different types of exceptions in your code
  • use a finally block to clean up after code execution in a try-catch
  • use the throws keyword in a method signature instead of implementing an exception handler
  • implement a try-with-resource block to close resources after their use
  • summarize the key concepts covered in this course

Overview/Description

It is important to handle exceptions proactively in Java to ensure that the flow of a program doesn't break on the occurrence of an exception. Take this course to explore the fundamentals of handling exceptions and different constructs available in Java that allow you to do so.

Delve into working with try-catch, finally, and try-with-resource blocks to handle various exceptions within your code. These blocks can be used to catch single, multiple, or categories of exceptions, clean up after your code has run, and handle exceptions related to specific Java objects, respectively.

Upon completion of this course, you'll be able to implement exception handling within Java effectively.



Target

Prerequisites: none

Close Chat Live